package org.example;

/**
 * Author:dodayum
 * Date:2025-11-04
 */
public class RandomKeyboardCombos {
    private static final char[] CHARS = (
            "abcdefghijklmnopqrstuvwxyz" +   // 小写字母
                    "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +   // 大写字母
                    "0123456789" +                   // 数字
                    "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? " // 符号 + 空格
    ).toCharArray();



    public static void main(String[] args) {
        for (int length = 5; length <= 10; length++) {
            System.out.println("=== 正在生成长度为 " + length + " 的组合 ===");
            generate("", length);
        }
    }

    private static void generate(String prefix, int remaining) {
        if (remaining == 0) {
//            System.out.println(prefix);
            return;
        }

        for (char c : CHARS) {
            generate(prefix + c, remaining - 1);
        }
    }
}


